package myTeam.timeShop.util;

import myTeam.timeShop.bean.Page;




public class PageUtil {
	public static Page getPage(String pageNo,int pageSize,int totalRecords ){
		Page page=new Page();
		if(pageNo==null||pageNo==""){
			page.setPageNo(0);
			
		}else{
			page.setPageNo(Integer.valueOf(pageNo));
			
		}
		page.setPageSize(pageSize);
		page.setTotalRecords(totalRecords);
		return page;
	}
}
